package com.glsc.ngateway.common.base.domain.mysql.opmanagemain.archive;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author liwei
 * 文件中心，客户目录实例表
 */
@Data
@Entity
@Table(name = "t_archive_client_dir_doc")
@org.hibernate.annotations.Table(appliesTo = "t_archive_client_dir_doc", comment = "客户目录实例表")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ArchiveClientDirDoc implements Serializable {
    private static final long serialVersionUID = 4523864208611949729L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "doc_id", columnDefinition = "int(20) comment '档案id'")
    private Integer docId;

    @ApiModelProperty(value = "客户编号")
    @Column(name = "client_id", columnDefinition = "varchar(60) COMMENT '客户编号'")
    private String clientId;

    @Column(name = "client_dir_id", columnDefinition = "int(20) comment '客户目录id'")
    private Integer clientDirId;


}
